﻿<Window
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d" xmlns:local="clr-namespace:JBot"
	x:Class="JBot.MainWindow"
	x:Name="Window"
	Title="JBot" Icon="/JBot;component/Resources/JBot.ico"
	Width="640" Height="480" Closing="Window_Closing">

	<Grid x:Name="MWRoot">
		<Grid.RowDefinitions>
			<RowDefinition Height="27"/>
			<RowDefinition Height="0.844*"/>
			<RowDefinition Height="30"/>
		</Grid.RowDefinitions>
		<TabControl x:Name="MW_TC" Margin="1,0,0,0.198" Grid.Row="1">
			<TabItem x:Name="MW_TC_L" Header="Logs">
				<Grid>
					<local:LogsControl x:Name="ControlL"/>
				</Grid>
			</TabItem>
			<TabItem x:Name="MW_TC_Cs" Header="Console">
				<Grid>
					<local:ConsoleControl x:Name="ControlCs"/>
				</Grid>
			</TabItem>
			<TabItem x:Name="MW_TC_Ct" Header="Contacts" IsEnabled="False">
				<Grid>
					<local:ContactsControl x:Name="ControlCt"/>
				</Grid>
			</TabItem>
			<TabItem x:Name="MW_TC_S" Header="Services" IsEnabled="False">
				<Grid>
					<local:ServicesControl x:Name="ControlS"/>
				</Grid>
			</TabItem>
			<TabItem x:Name="MW_TC_XL" Header="XML Logs">
				<Grid>
					<local:XMLLogsControl x:Name="ControlXL"/>
				</Grid>
			</TabItem>
		</TabControl>
		<Menu x:Name="MW_M">
			<MenuItem x:Name="MW_M_B" Header="Bot">
				<MenuItem x:Name="MW_M_B_Co" Header="Connect" Click="MW_M_B_Co_Click" />
				<Separator x:Name="MW_M_B_S1" Margin="0"/>
				<MenuItem x:Name="MW_M_B_Ch" Header="Change status" IsEnabled="False">
                    <MenuItem x:Name="MW_M_B_Ch_Co" Header="Connected" Click="MW_M_B_Ch_Co_Click" IsCheckable="True" />
                    <MenuItem x:Name="MW_M_B_Ch_Ff" Header="Free for chat" Click="MW_M_B_Ch_Ff_Click" IsCheckable="True" />
					<Separator VerticalAlignment="Center"/>
                    <MenuItem x:Name="MW_M_B_Ch_Aw" Header="Away" Click="MW_M_B_Ch_Aw_Click" IsCheckable="True" />
                    <MenuItem x:Name="MW_M_B_Ch_Xa" Header="X away" Click="MW_M_B_Ch_Xa_Click" IsCheckable="True" />
                    <MenuItem x:Name="MW_M_B_Ch_Dn" Header="Do not disturb" Click="MW_M_B_Ch_Dn_Click" IsCheckable="True" />
					<Separator VerticalAlignment="Center"/>
                    <MenuItem x:Name="MW_M_B_Ch_In" Header="Invisible" Click="MW_M_B_Ch_In_Click" IsCheckable="True" />
                    <MenuItem x:Name="MW_M_B_Ch_Di" Header="Disconnected" Click="MW_M_B_Ch_Di_Click" IsCheckable="True" />
					<Separator VerticalAlignment="Center"/>
                    <MenuItem x:Name="MW_M_B_Ch_Sd" Header="Set description" Click="MW_M_B_Ch_Sd_Click" />
				</MenuItem>
				<Separator x:Name="MW_M_B_S2"/>
				<MenuItem x:Name="MW_M_B_H" Header="Hide" Click="MW_M_B_H_Click" />
				<MenuItem x:Name="MW_M_B_E" Header="Exit" Click="MW_M_B_E_Click" />
			</MenuItem>
			<MenuItem x:Name="MW_M_L" Header="Logs">
                <MenuItem x:Name="MW_M_L_L" Header="Load">
                    <MenuItem x:Name="MW_M_L_L_Bl" Header="Bot logs" Click="MW_M_L_L_Bl_Click" />
                    <MenuItem x:Name="MW_M_L_L_Cl" Header="Console logs" Click="MW_M_L_L_Cl_Click" />
                    <MenuItem x:Name="MW_M_L_L_Xl" Header="XMPP logs" Click="MW_M_L_L_Xl_Click" />
                    <MenuItem x:Name="MW_M_L_L_Al" Header="All logs" Click="MW_M_L_L_Al_Click" />
                </MenuItem>
                <MenuItem x:Name="MW_M_L_S" Header="Save">
                    <MenuItem x:Name="MW_M_L_S_Bl" Header="Bot logs" Click="MW_M_L_S_Bl_Click" />
                    <MenuItem x:Name="MW_M_L_S_Cl" Header="Console logs" Click="MW_M_L_S_Cl_Click" />
                    <MenuItem x:Name="MW_M_L_S_Xl" Header="XMPP logs" Click="MW_M_L_S_Xl_Click" />
                    <MenuItem x:Name="MW_M_L_S_Al" Header="All logs" Click="MW_M_L_S_Al_Click" />
                </MenuItem>
				<Separator x:Name="MW_M_L_S1" Margin="0"/>
                <MenuItem x:Name="MW_M_L_I" Header="Import">
                    <MenuItem x:Name="MW_M_L_I_Bl" Header="Bot logs" Click="MW_M_L_I_Bl_Click" />
                    <MenuItem x:Name="MW_M_L_I_Cl" Header="Console logs" Click="MW_M_L_I_Cl_Click" />
                    <MenuItem x:Name="MW_M_L_I_Xl" Header="XMPP logs" Click="MW_M_L_I_Xl_Click" />
                    <MenuItem x:Name="MW_M_L_I_Al" Header="All logs" Click="MW_M_L_I_Al_Click" />
                </MenuItem>
                <MenuItem x:Name="MW_M_L_E" Header="Export">
                    <MenuItem x:Name="MW_M_L_E_Bl" Header="Bot logs" Click="MW_M_L_E_Bl_Click" />
                    <MenuItem x:Name="MW_M_L_E_Cl" Header="Console logs" Click="MW_M_L_E_Cl_Click" />
                    <MenuItem x:Name="MW_M_L_E_Xl" Header="XMPP logs" Click="MW_M_L_E_Xl_Click" />
                    <MenuItem x:Name="MW_M_L_E_Al" Header="All logs" Click="MW_M_L_E_Al_Click" />
                </MenuItem>
				<Separator x:Name="MW_M_L_S2"/>
                <MenuItem x:Name="MW_M_L_C" Header="Clear logs">
                    <MenuItem x:Name="MW_M_L_C_Bl" Header="Bot logs" Click="MW_M_L_C_Bl_Click" />
                    <MenuItem x:Name="MW_M_L_C_Cl" Header="Console logs" Click="MW_M_L_C_Cl_Click" />
                    <MenuItem x:Name="MW_M_L_C_Xl" Header="XMPP logs" Click="MW_M_L_C_Xl_Click" />
                    <MenuItem x:Name="MW_M_L_C_Al" Header="All logs" Click="MW_M_L_C_Al_Click" />
                </MenuItem>
            </MenuItem>
			<MenuItem x:Name="MW_M_T" Header="Tools">
				<MenuItem x:Name="MW_M_T_A" Header="Administration">
					<MenuItem x:Name="MW_M_T_A_DNU" Header="Delete noname users" Click="MW_M_T_A_DNU_Click" />
					<MenuItem x:Name="MW_M_T_A_DBU" Header="Delete blocked users" Click="MW_M_T_A_DBU_Click" />
				</MenuItem>
				<MenuItem x:Name="MW_M_T_O" Header="Options" Click="MW_M_T_O_Click" />
			</MenuItem>
			<MenuItem x:Name="MW_M_H" Header="Help">
                <MenuItem  x:Name="MW_M_H_D" Header="Documentation" Click="MW_M_H_D_Click" />
				<Separator Margin="0"/>
                <MenuItem  x:Name="MW_M_H_U" Header="Update" Click="MW_M_H_U_Click" />
				<Separator/>
                <MenuItem  x:Name="MW_M_H_A" Header="About" Click="MW_M_H_A_Click" />
			</MenuItem>
		</Menu>
		<StatusBar x:Name="MW_SB" Margin="1,0,0,0" Grid.Row="2">
			<StatusBarItem x:Name="SBI_L_Bot" Content="Bot:" d:LayoutOverrides="Height"/>
			<ProgressBar x:Name="SBI_PB_Bot" Height="13" Width="100" IsIndeterminate="True"/>
			<StatusBarItem x:Name="SBI_LS_Bot" Content="Running..."/>
			<StatusBarItem x:Name="SBI_L_XMPP" Content="XMPP:" Margin="5,0,0,0"/>
			<ProgressBar x:Name="SBI_PB_XMPP" Width="100" Height="13" Minimum="100"/>
			<StatusBarItem x:Name="SBI_LS_XMPP" Content="Disconnected"/>
		</StatusBar>
    </Grid>
</Window>